body,div,span,main,header,footer,nav,section,aside,article,ul,ol,dl,dt,dd,li,a,p,h1,h2,h3,h4,h5,h6,i,em,b,textarea,button,input,select,figure,figcaption {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-style: normal;
    font-weight: normal;
    text-decoration: none;
}
ul,
ol {
    list-style: none;
}

img {
    border-style: none;
}


html {
    line-height: 1.15;
    text-size-adjust: 100%;
    font-size: 12px;
    font-family: PingFangSC-Light, 'helvetica neue', 'hiragino sans gb', tahoma, 'microsoft yahei ui', 'microsoft yahei', simsun, sans-serif;
}

/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: #999;
}

/*定义滚动条轨道 内阴影+圆角*/

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, 0);
    border-radius: 10px;
    background-color: #F5F5F5;
}

/*定义滑块 内阴影+圆角*/

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    background-color: #777;
}



.clearfix::before,
.clearfix::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    clear: both;
    opacity: 0;
    visibility: hidden;
}
:after,
:before {
    box-sizing: border-box;
}

.overflow-hidden {
    overflow: hidden;
}

.hidden,
[hidden] {
    display: none;
}

.inline {
    display: inline;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.display-table {
    display: table;
}

.table-cell {
    display: table-cell;
}

.flex {
    display: flex;
}

.flex-center {
    justify-content: center;
}

.vertical-middle {
    vertical-align: middle;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.font-bold {
    font-weight: bold !important;
}

.font-normal {
    font-weight: normal;
}

.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

.absolute {
    position: absolute;
    z-index: 100;
}

.relative {
    position: relative;
}

.fixed {
    position: fixed;
}

.margin-auto {
    margin: auto;
}

@for $i from 0 through 10 {
    $box: $i*5;
    .margin-#{$box} {
        margin:#{$box}px;
    }
    .margin-top-#{$box} {
        margin-top:#{$box}px;
    }
    .margin-left-#{$box} {
        margin-left:#{$box}px;
    }
    .margin-right-#{$box} {
        margin-right:#{$box}px;
    }
    .margin-bottom-#{$box} {
        margin-bottom:#{$box}px;
    }
    .padding-#{$box} {
        padding:#{$box}px;
    }
    .padding-top-#{$box} {
        padding-top:#{$box}px;
    }
    .padding-left-#{$box} {
        padding-left:#{$box}px;
    }
    .padding-right-#{$box} {
        padding-right:#{$box}px;
    }
    .padding-bottom-#{$box} {
        padding-bottom:#{$box}px;
    }
}

@for $i from 1 through 20 {
    $size: $i*10+50;
    .width-#{$size} {
        width:#{$size}px;
    }
    $per:$i*5;
    .width-#{$per}per {
        width: $per*1%;
    }
    .height-#{$per}per {
        height: $per*1%;
    }
}

.width-100vw {
    width: 100vw;
}

.width-50vw {
    width: 50vw;
}

.height-100vh {
    height: 100vh;
}

.height-50vh {
    height: 50vh;
}

.view-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}